package org.csmz.class2333;

public class Example13 {package org.csmzxy.class2333;

import java.util.Scanner;

    public class Example13 {

        public static void main(String[] args){
            String password = "123456";
            String intput;

            Scanner scanner = new Scanner(System.in);
            do{
                // 循环体
                // 最少会执行一次
                System.out.println("请输入密码：");
                intput = scanner.nextLine();
            }while (intput != password); // intput != password 这是循环条件

            System.out.println("密码输入正确");
        }


    }
}
